home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / networke / civ-0.000 / civ-0 / civ-0.3 / src / defs.h < prev    next >
C/C++ Source or Header  |  1995-02-15  |  947b  |  51 lines

  1. #ifndef _DEFS_H
  2. #define _DEFS_H
  3.  
  4. #include "mytypes.h"
  5. #include "list.h"
  6. #include "debug.h"
  7.  
  8. class World;
  9. class Graphics;
  10. class TransTable;
  11. class WDisplay;
  12. class Player;
  13. struct PieceMove;
  14.  
  15. extern Graphics *screen;
  16.  
  17. extern World *world;
  18. extern int sock; // socket to communicate with server
  19.  
  20. extern int numPlayers;
  21. extern Player **players;
  22.  
  23. extern int playerId;
  24. extern char *myName;
  25. extern char *serverName; // only used in windows
  26.  
  27. extern int currTurn;
  28.  
  29. extern TransTable *trans; // translation table
  30.  
  31. extern WDisplay *display;
  32.  
  33. extern char *names[]; // names of units and other things which we produce
  34. extern char **cityNames, *initCityNames[];
  35.  
  36. // this is the list of current moves we have made
  37. // gets sent to all the other players at the end of our turn
  38. class MsgQ;
  39. extern MsgQ *moveQ;
  40.  
  41. extern int savedGame; // true if this is a saved game
  42.  
  43. const int CURSOR_TIMER = 0;
  44. const int DATA_SEND_TIMER = 1;
  45.  
  46. #ifndef MS_WIN
  47. #define FAR
  48. #endif
  49.  
  50. #endif
  51.